package com.bbm.service.impl;


import com.bbm.entity.Comment;
import com.bbm.entity.vo.ResponseResult;
import com.bbm.mapper.CommentMapper;
import com.bbm.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Comment)表服务实现类
 *
 * @author lionkliu
 * @since 2024-02-18 18:03:31
 */
@Service("commentService")
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentMapper commentMapper;

    @Override
    public ResponseResult selectPage(Integer pageNum, Integer pageSize) {
        return null;
    }

    @Override
    public ResponseResult selectOne(Integer id) {
        return null;
    }

    @Override
    public ResponseResult insertOne(Comment comment) {
        return null;
    }

    @Override
    public ResponseResult deleteById(Integer id) {
        return null;
    }

    @Override
    public ResponseResult updateOne(Comment comment) {
        return null;
    }

    @Override
    public ResponseResult getCommentByHouseId(Integer id) {
        List<Comment> comments = commentMapper.getCommentByHouseId(id);
        return ResponseResult.okResult(comments);
    }
}

